home *** CD-ROM | disk | FTP | other *** search
- Path: newsfeed.gsfc.nasa.gov!usenet
- From: Stephen Maher <Stephen.Maher@gsfc.nasa.gov>
- Newsgroups: comp.lang.c
- Subject: Examples of using "volatile"?
- Date: 17 Jan 1996 21:09:54 GMT
- Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA
- Message-ID: <4djoj2$mr1@post.gsfc.nasa.gov>
- NNTP-Posting-Host: wentworth.gsfc.nasa.gov
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1S (X11; I; IRIX 5.3 IP22)
- X-URL: news:comp.lang.c/106698-106797#4dbqdj$7h2@redstone.interpath.net
-
- Hi,
-
- I'd like a concrete example(s) illustrating a reason to
- use the "volatile" type qualifier.
-
- I understand the *theory* behind volatile (e.g., to
- avoid unwanted side-effects?). I also realize it's
- probably implementation dependent. But some examples
- from any implementation should help me understand
- its use a little better.
-
- Thanks,
-
- Steve
- --
- Stephen.Maher@gsfc.nasa.gov (301) 286-3368
- Scientfic Visualization Studio (f) (301) 286-1634
- Code 932 NASA Goddard Space Flight Center
-
-